package com.sh.data.engine.application.model.request.normalization;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author: mengzheng.mhc
 * @date: 2024/7/4 16:03
 */
@Data
public class FilterSortRequest {

    @NotBlank(message = "目标表")
    private String targetTblName;

    private List<FilterCondition> filterConditions;

    @Schema(description = "要排序的字段名")
    private String orderByColName;

    @Schema(description = "ASC, DESC")
    private String order;

    @Data
    public static class FilterCondition {
        @Schema(description = "字段名称")
        private String columnName;

        @Schema(description = "字段等于某些值")
        private List<String> whereName;
    }
}
